package ile.DAO;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import ile.Modelo.DevolucionMaterial;
import java.util.List;
import javax.persistence.Query;

/**
 *
 * @author 
 */
public class DevolucionMDAO extends DAOAbstract<DevolucionMaterial> {

    public DevolucionMDAO(DevolucionMaterial t) {
        super(t);
    }
    
    public List<DevolucionMaterial>buscartodos(){
        Query consulta = this.getEntityManager().createQuery("Select devolucionmaterial from DevolucionMaterial devolucionmaterial");
        return consulta.getResultList();
    }


}
